#ifndef _BYTE_H_
#define _BYTE_H_

#include "../bitpointer/BitPointer.h"
/*
	class : Byte
	desc : This is just a simple class that
		realistically creates an easy access way to
		get data from a byte of data and interate through it.
*/
class Byte
{
	private:
		//data that the byte is referencing
		unsigned char data;
	public:
		//default constructor 
		Byte();
		//constructor that sets data to same value as d
		Byte(unsigned char d);
		//sets the value of data to d
		void set(unsigned char d);
		//returns the value of data
		unsigned char get();
		//gets a bitpointer to data that indexs bit i
		BitPointer getBitPointer(unsigned int i);
		//provides easy access to bits in the byte
		BitPointer operator[](unsigned int i);
};


#endif
